<!doctype html>
<html lang="en">
<head>
    <?php include "../include/header.php"; ?>
    <?php include "../include/conn.php"; ?>
    <?php
        $id = $_GET['id'];
        $result = mysql_query('select * from todo where id ='. $id);
        $row = mysql_fetch_array($result);
        $content = $row['content'];
    ?>
</head>
<body>
<div class="container">
    <form method="post" action="todo_action.php">

        <div>
            <textarea name="content" id="content" cols="120" rows="10" title="content"><?php echo $content;?></textarea>
        </div>

        <div>
            <input name="id" type="hidden" value="<?php echo $id;?>"/>
            <input name="action" type="hidden" value="mod"/>
            <input type="submit" value="Update"/>
        </div>

    </form>

</div>

</body>
</html>